//
//  RecommendHotelCollectionCell.m
//  AroundTheWorld
//
//  Created by IfelseGo on 16/5/23.
//  Copyright © 2016年 IfelseGo an. All rights reserved.
//

#import "RecommendHotelCollectionCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation RecommendHotelCollectionCell
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self doSometing];
    }
    return self;
}

-(void)doSometing{
    
    self.myImageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
    self.myImageV.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:self.myImageV];
    
    //图片处理
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
    view.backgroundColor = [UIColor blackColor];
    view.alpha = 0.4;
    [self.contentView addSubview:view];
    
    self.cnnameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, HEIGHT / 2 - 20, WIDTH, 40)];
    self.cnnameLabel.backgroundColor = [UIColor clearColor];
    self.cnnameLabel.textAlignment = NSTextAlignmentCenter;
    self.cnnameLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.cnnameLabel];
    
}


@end
